<?php
namespace My\Model;
use Think\Model;
class SeckillModel extends Model{
	
	protected $_auto=array(
		array('begin_time','strtotime',self::MODEL_BOTH,'function'),
		array('end_time','strtotime',self::MODEL_BOTH,'function'),
		
	);
	public function getOneById(){
		return M('Seckill')->find(I('id'));
	}
	
	
}